package com.atguigu.gmall.item;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.cloud.client.circuitbreaker.EnableCircuitBreaker;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;


/**
 * 商品详情页微服务
 * @author dyqstart
 * @create 2021-08-06-17:22
 * @since 1.0.0
 */
@EnableFeignClients({"com.atguigu.gmall.feign.product","com.atguigu.gmall.feign.search"}) //开启Feign的远程调用
@SpringBootApplication(exclude = DataSourceAutoConfiguration.class)//排除数据库链接jar取消数据源自动配置
@EnableDiscoveryClient
@EnableCircuitBreaker
public class ServiceItemApplication {
    public static void main(String[] args) {

        SpringApplication.run(ServiceItemApplication.class,args);
    }
}
